package tragame.server.evenement;

import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import tragame.game.Map;

public class Serveur {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int port=1099;		
		try {
			Registry reg = LocateRegistry.getRegistry(port);
			Map map=Map.getInstance(15);
			reg.bind("/Map", map);	
			System.out.println("serveur pret ! ");
			System.out.println("===========================================================");
		} catch (RemoteException e) {			
			e.printStackTrace();
		} catch (AlreadyBoundException e) {
			e.printStackTrace();
		}
	}
}


